package com.doophan.dac.client.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;

@RestController
@RequestMapping("/cuc")
public class CucTestController {
    @GetMapping("/test/{id}")
    public Map<String, String> test(@PathVariable String id) throws InterruptedException {
        Map<String, String> res = new HashMap<>();
        TimeUnit.SECONDS.sleep(3);
        res.put("id", id);
        return res;
    }
}
